<?php
namespace App\Controllers\Admin;

use App\Controllers\Controller;
use Core\Context;

class AdminBaseController extends Controller
{
    public function __construct(){
        parent::__construct();
        $adminPermission = Context::get('adminPermission');
        if(! empty($adminPermission)){
            $this->assign('adminPermission', $adminPermission);
        }

    }
}